package com.wyc.serviceDriverUser.feign;

import com.wyc.internalCommon.response.TerminalResponse;
import com.wyc.internalCommon.response.TrackResponse;
import com.wyc.internalCommon.result.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("service-map")
public interface ServiceMapFeignClient {

    /**
     * 添加终端
     * @param name
     * @return
     */
    @RequestMapping("/terminal/add")
    ApiResult<TerminalResponse> addTerminal(@RequestParam("name") String name,@RequestParam("carId") String carId);

    /**
     * 添加轨迹
     * @param tid
     * @return
     */
    @RequestMapping("/track/add")
    ApiResult<TrackResponse> addTrack(@RequestParam("tid") String tid);

}
